package com.cloud.wms.injection.modules;

import android.app.Activity;
import android.content.Context;


import com.cloud.wms.injection.scopes.PerActivity;

import dagger.Module;
import dagger.Provides;

/**
 * Created by Tanghaibo
 * 2018/3/22
 * description:
 */
@Module
public final class ActivityModule {
    private Activity mActivity;

    public ActivityModule(Activity activity) {
        this.mActivity = activity;
    }

    @PerActivity
    @Provides
    public Context provideActivityContext() {
        return mActivity;
    }


    @Provides
    @PerActivity
    public Activity provideActivity(){
        return mActivity;
    }
}
